public class SetGetDemo04 {
    public static void main(String[] args) {
        Duck duck = new Duck(10);
//        duck.age = -10;
//        duck.setAge(-10);
        duck.setAge(20);
    }
}
